{{!< default}}
<!-- header start -->
<xmp ms-widget="{is:'ms-header'}"></xmp>
<xmp ms-widget="{is:'ms-header2'}"></xmp>
<!-- header end -->

<!-- main star -->
<div class="content system">
	<div class="container fn-clear">
		<xmp ms-widget="{is:'ms-work-nav'}"></xmp>
		<xmp ms-widget="{is:'ms-list', config:@config.mallList, id:'mallList', prevData:data.mallList, autoLoad:false}">
			<div slot="list-content" ms-controller="mallList">
				<div class="main">
					<h2 class="right-tit">系统参数</h2>
					<div class="main-tabbox">
						<div class="search-box">
							<form action="">
								<div class="fn-clear keywords">
									<div class="fn-left fn-clear">
										<form action=""
											  ms-on-submit="doFormParams({keyword:$event.target.children.keyword.value,pageNumber:1,registerTime:$event.target.children.registerTime.value,registerTimeEndDate:$event.target.children.registerTimeEndDate.value})">
											<label>搜索</label>
											<input type="text" name="keyword" placeholder="参数名称"
												   class="w220 mr10">
											
											<button type="submit" class="red-btn" style="display: inline-block;">
												搜索
											</button>
										</form>
									</div>
								</div>
								<div class="product-attr fn-clear">
									<div class="fn-clear">
										<label>用户状态</label>
										<select name="status" class="w100"
												ms-on-change="doSetParams({status:$event.target.value,pageNumber:1})">
											<option value="">全部</option>
											<option value="used">启用</option>
											<option value="disable">已禁用</option>
											<option value="delete">已删除</option>
										</select>
									</div>
									<a href="javascript:void(0)" class="border-btn fnReset" ms-click="doClearParams([])">重置</a>
									<div class="fn-left history">
										<a href="javascript:void(0)" ms-click="updateConfig('systemConfCreate',{})" class="border-btn">新建参数</a>
										<a href="javascript:void(0)" ms-click="changeStatus(getSelect(),'used')" class="border-btn">批量启用</a>
										<a href="javascript:void(0)" ms-click="changeStatus(getSelect(),'disable')" class="border-btn">批量禁用</a>
										<a href="javascript:void(0)" ms-click="changeStatus(getSelect(),'delete')" class="border-btn">批量删除</a>
									</div>
								</div>
							</form>
						</div>
						<div class="tableBox">
							<div class="minh400">
								<table cellpadding="0" cellspacing="0" class="main-table">
									<thead>
									<tr>
										<th class="fn-clear" width="7%"><input type="checkbox" class="all fn-left"
																				ms-click="selectAll($event)"
																			  	 ms-attr="{checked:allCheckStatus()}"
																				style="margin: 5px 5px 0 20px"><span
												class="fn-left">全选</span></th>
										<th width="20%">参数名</th>
										<th width="30%">值</th>
										<th width="23%">备注</th>
										<th width="10%">状态</th>
										<th width="10%">操作</th>
									</tr>
									</thead>
									<tbody>
									<tr ms-for="($index,el) in @list">
										<td class="fn-clear">
											<input type="checkbox" ms-click="select(el,'_id',$event)"
												   ms-attr="{value:el._id,checked:el.isChecked}"
												   class="fn-left"
												   style="margin: 3px 5px 0 20px;height: auto;line-height: normal;"><span
												class="fn-left" ms-text="$index + 1"></span></td>
										<td ms-text="el.name"></td>
										<td ms-text="el.value"></td>
										<td ms-text="el.memo"></td>
										<td ms-text="el.status | statusName"></td>
										<td>
											<a href="javascript:void(0)" ms-click="updateConfig('systemConfUpdate',el)">修改</a>
											<a href="javascript:void (0)" ms-click="del(el)">删除</a>
										</td>
									</tr>
									</tbody>
								</table>
							</div>
							<!-- 分页 start -->
							<div class="makePage" ms-visible="@pageStatus().totalPage > 0">
								<div class="fn-right">
									<div class="leftBtn" ms-click="listPrevPage()"></div>
									<ul class="fn-left">
										<li ms-click="toPage(page)"
											ms-class="[((page === listParams.pageNumber) ? 'active' : '') ]"
											ms-for="page in pageStatus().pageArr" ms-text="page"></li>
									</ul>
									<div class="rightBtn" ms-click="listNextPage()"></div>
									<div class="fn-left"><span class="fs14 mt10 fn-dib ml10"
															   ms-text="'共' + pageStatus().pageTotal + '页，到'"> </span><input
											type="text" value="" name="pageNumber" class="pageInput">页<a
											ms-click="goToPage($event)" class="pageBtn">确定</a></div>
								</div>
							</div>
							<!-- 分页 end -->
						</div>
					</div>
				</div>
			</div>
		</xmp>
	</div>
</div>
<!-- main end -->
